<?php echo $this->doctype() . "\n" ?>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
	<?php
	$filename = "iwms_". date('Y_m_d_H_i_s').".xls";
	header("Content-Disposition: attachment; filename=$filename");  
	header("Content-Type: application/vnd.ms-excel"); 
	header ("Content-Transfer-Encoding: binary"); 
	echo $this->layout()->content; 
	?>
</body>
</html>